python print all prime numbers in an interval